package com.rockcent.mall.lib.repository;

import com.rockcent.common.common.PageResult;
import com.rockcent.mall.lib.dto.MerchantCustomerStatisticsDto;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by DK on 16/11/16.
 */
@Repository
public interface OrderEventRepositoryCustom {

    Long findBuyerIdNumByMerchantIdAndDate(Long mallId, Long merchantId, String startDate, String endDate);

    Long findUnpayCustomerNumByMerchantIdAndDate(Long mallId, Long merchantId, String startDate, String endDate);

    Long findPayNewCustomerNumByMerchantIdAndDate(Long mallId, Long merchantId, String startDate, String endDate);

    Long findPayOldCustomerNumByMerchantIdAndDate(Long mallId, Long merchantId, String startDate, String endDate);

    PageResult<MerchantCustomerStatisticsDto> findActiveCustomerListByMerchantIdandDate(Long mallId, Long merchantId, String startDate, String endDate,PageResult page);

    Long findCancelOrderNumByMerchantIdandDate(Long mallId, Long merchantId, String startDate, String endDate, Long customerId);

}
